package org.vsaulyak.springrssagregator.entity;

public class Item
{
    private long id;
    private int rank;
    private String link;
    private String title;
    
    public long getId()
    {
        return id;
    }
    
    public void setId(long id)
    {
        this.id = id;
    }
    
    public int getRank()
    {
        return rank;
    }
    
    public void setRank(int rank)
    {
        this.rank = rank;
    }
    
    public String getLink()
    {
        return link;
    }
    
    public void setLink(String link)
    {
        this.link = link;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    public String toString()
    {
        StringBuilder sb = new StringBuilder();
        sb.append(id).append(" - ");
        sb.append(rank).append(" - ");
        sb.append(link).append(" - ");
        sb.append(title);
        
        return sb.toString();
    }
}
